
package com.cumt.framework;

import java.util.ArrayList;
import java.util.List;

/**
 * EnvConstants.java
 */
public final class Constants {

    public final class Env {

        private Env() {
        }

        public static final String BASE_HOME = "configs/";
    }

    public final class RestPathPrefix {
        //系统基础服务路径
        public static final String BASE = "base/";
        //shark的服务路径
        public static final String SHARK = "shark/";
        //app的服务路径
        public static final String APP = "app/";
        //用于Gateway交互路劲
        public static final String GATEWAY = "gateway/";
        //用于Gateway交互路劲
        public static final String COMMON = "common/";
    }

    /**
     * 服务标识
     */
    public enum ServiceName {
        MANAGER//,ETL,ESB,DATABASE,ISWAP;
    }

    /**
     * Restful 对外的静态变量
     */
    public final class jsonView {

        public static final String STATUS_SUCCESS = "success";

        public static final String STATUS_FAIL = "fail";

        public static final String NONE_LOGIN = "none_login";

        public static final String ERRMSG_PAGE = "分页信息为空";
        public static final String ERRMSG_ID = "主键ID为空";
        public static final String ERRMSG_OBJ = "对象为空";
    }

    public static List<String> ImageTypes = new ArrayList<String>();

    static {
        ImageTypes.add("gif");
        ImageTypes.add("png");
        ImageTypes.add("jpg");
        ImageTypes.add("jpeg");
        ImageTypes.add("bmp");
    }


    /**
     * 定义数据传输的Topic
     */
    public final class topic {
        public static final String CANBUS_TOPIC = "canbus_topic";
        public static final String RMUEVENT_TOPIC = "rmuevent_topic";
        public static final String RMUESIGNAL_TOPIC = "rmusignal_topic";
    }

}
